from collections import namedtuple
Point = namedtuple('Point',['x','y'])
print(Point)
p1 = Point(4,5)
print(p1)
print(Point.__bases__)

Student = namedtuple('S','name,age')
print(Student)
Tom = Student('tom',20)
print(Tom)
